package SmartMeeting;

import SmartMeeting.commands.*;
import SmartMeeting.facades.MeetingSystem;

import java.util.ArrayList;
import java.util.List;

public class MeetingApplication {
    public static void main(String[] args) {
        List<String> participants = new ArrayList<>();
        participants.add("John");
        participants.add("Mary");
        participants.add("Tom");

        MeetingSystem meetingSystem = new MeetingSystem("Mobile");

        CreateCommand createCommand = new CreateCommand(meetingSystem, "John", "10:00", "Room 1", participants);
        Command startCommand = new StartCommand(meetingSystem, null, createCommand, "Mobile");
        Command cancelCommand = new CancelCommand(meetingSystem, createCommand, "Mobile");

        Invoker invoker = new Invoker();
        invoker.executeCommand(createCommand);
        invoker.executeCommand(startCommand);
        invoker.executeCommand(cancelCommand);
    }
}
